package com.mindmax.user.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 关联租户列表对象 yt_tenant_user
 * 
 * @author cabloy
 * @date 2024-04-02
 */
public class TenantUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)

    private Long id;

    /** 租户id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)

    @Excel(name = "租户id")
    private Long tenantId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 职业id */
    @Excel(name = "职业id")
    private Long careerId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCareerId(Long careerId) 
    {
        this.careerId = careerId;
    }

    public Long getCareerId() 
    {
        return careerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("userId", getUserId())
            .append("careerId", getCareerId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
